package com.younion.common.constants;


public enum ConfigType {
	
	ABOUT("ABOUT","关于我们"), SERVICE("SERVICE","服务条款");
	private String name;
	private String title;

	private ConfigType(String name,String title) {
		this.name = name;
		this.title = title;
	}

	public String getName() {
		return name;
	}
	
	public String getTitle(){
		return title;
	}

	public static ConfigType valueOfName(String name) {
		for (ConfigType e : ConfigType.values()) {
			if (e.getName().equals(name)) {
				return e;
			}
		}
		return null;
	}

	public static void main(String[] args) {
		System.out.print(ConfigType.valueOfName("*"));
	}
	
}
